.class public Lcom/netease/newsreader/view/CommentToolsPopup;
.super Lcom/netease/newsreader/view/MyPopupWindow;
.source "CommentToolsPopup.java"


# instance fields
.field private mOnClickListener:Landroid/view/View$OnClickListener;

.field private mTag:Ljava/lang/Object;


# direct methods
.method public constructor <init>(Landroid/content/Context;)V
    .locals 1
    .parameter "context"

    .prologue
    const/4 v0, -0x2

    .line 18
    invoke-direct {p0, p1, v0, v0}, Lcom/netease/newsreader/view/MyPopupWindow;-><init>(Landroid/content/Context;II)V

    .line 19
    const/4 v0, 0x1

    invoke-virtual {p0, v0}, Lcom/netease/newsreader/view/CommentToolsPopup;->setOutsideTouchable(Z)V

    .line 20
    const/4 v0, 0x0

    invoke-virtual {p0, v0}, Lcom/netease/newsreader/view/CommentToolsPopup;->setFocusable(Z)V

    .line 21
    return-void
.end method


# virtual methods
.method public dismiss()V
    .locals 1

    .prologue
    .line 46
    const/4 v0, 0x0

    iput-object v0, p0, Lcom/netease/newsreader/view/CommentToolsPopup;->mTag:Ljava/lang/Object;

    .line 47
    invoke-super {p0}, Lcom/netease/newsreader/view/MyPopupWindow;->dismiss()V

    .line 48
    return-void
.end method

.method public getTag()Ljava/lang/Object;
    .locals 1

    .prologue
    .line 41
    iget-object v0, p0, Lcom/netease/newsreader/view/CommentToolsPopup;->mTag:Ljava/lang/Object;

    return-object v0
.end method

.method public setOnClickListener(Landroid/view/View$OnClickListener;[I)V
    .locals 6
    .parameter "listener"
    .parameter "clickIds"

    .prologue
    .line 24
    iput-object p1, p0, Lcom/netease/newsreader/view/CommentToolsPopup;->mOnClickListener:Landroid/view/View$OnClickListener;

    .line 25
    invoke-virtual {p0}, Lcom/netease/newsreader/view/CommentToolsPopup;->getContentView()Landroid/view/View;

    move-result-object v0

    .line 26
    .local v0, contentView:Landroid/view/View;
    if-eqz v0, :cond_0

    .line 27
    if-eqz p2, :cond_0

    array-length v3, p2

    if-lez v3, :cond_0

    .line 28
    array-length v4, p2

    const/4 v3, 0x0

    :goto_0
    if-lt v3, v4, :cond_1

    .line 34
    :cond_0
    return-void

    .line 28
    :cond_1
    aget v1, p2, v3

    .line 29
    .local v1, id:I
    invoke-virtual {v0, v1}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v2

    .line 30
    .local v2, v:Landroid/view/View;
    iget-object v5, p0, Lcom/netease/newsreader/view/CommentToolsPopup;->mOnClickListener:Landroid/view/View$OnClickListener;

    invoke-virtual {v2, v5}, Landroid/view/View;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    .line 28
    add-int/lit8 v3, v3, 0x1

    goto :goto_0
.end method

.method public setTag(Ljava/lang/Object;)V
    .locals 0
    .parameter "tag"

    .prologue
    .line 37
    iput-object p1, p0, Lcom/netease/newsreader/view/CommentToolsPopup;->mTag:Ljava/lang/Object;

    .line 38
    return-void
.end method
